package 集合;

import java.util.ArrayList;

public class t2 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        //增强类
        for(String s : list){
            System.out.println(s);
        }
    }
}
